<ion-header>
    <ion-toolbar content-page>
        <ion-buttons start>
            <button ion-button icon-only (click)="backButtonClick($event)">
                <i class="toolbar-back"></i>
            </button>
        </ion-buttons>
        <ion-title>
            结束重复
        </ion-title>
        <ion-buttons end>
            <button ion-button icon-only (click)="saveHandler()">
                <i class="settings" >保存</i>
            </button>
        </ion-buttons>
    </ion-toolbar>
</ion-header>


<ion-content>
    <ion-item (click)="clearEndRepeat()" class=" device-pixel-border-bottom" [class.select-panel]="endType==1">
        <ion-label>
            永不
        </ion-label>
        <ion-icon class="selected-hook" item-end></ion-icon>
        <ion-label class="value-null">

        </ion-label>
    </ion-item>
    <ion-item [class.select-panel]="endType==2">
        <ion-label>于日期</ion-label>
        <ion-icon name="arrow" item-end >
            <span *ngIf="endType==2"></span>
        </ion-icon>
        <ion-datetime [class.lost]="endType==1" cancelText="取消" doneText="确定" displayFormat="YYYY年MM月DD日" pickerFormat="YYYYMMDD" yearValues="{{yearList}}"
                      min="{{minTime}}" max="2100" [pickerOptions]="{cssClass: 'date-YMD'}" [(ngModel)]="endRepeatTime"
                      (ionChange)="selEnd()"></ion-datetime>
    </ion-item>
</ion-content>
